fix scaling issue