fixed bug with different screen sizes