fix scaling