fixed reference bug in niceScale