Use Ufixed8 for ScaleMinMax in sc(...)