fixed an inverted scaling bug