Fixed scaleing bug