Fixed improper scaling