Blend Median problem

Hi, I’m trying same command but with tif files. At the end I get an almost white image, few red & yellow pixels in some cases.
[gmic]-15./ Apply gamma-corrected color balance of images [0,1,2,(…),12,13,14], with reference color (128).
[gmic]-15./ Blend images [0,1,2,(…),12,13,14] using ‘median’ mode.
[gmic]-1./ Output image [0] as tif file ‘test1.tif’, with pixel type ‘auto’, no compression and bigtiff support (1 image 4000x6000x1x3).
[gmic]-1./ End G’MIC interpreter.

If I do with the Gimp plug in it works well.

In fact I want to use averge all as it is working on Gimp Plugin when selecting input layers all.

Any idea what I could be doing wrong? Thanks in advance