fixed return in niceScale