Blend Median problem

Oh, it seem like I was confusing mode for median for a while. I was fatigued during the last few days.