Fixed the problem of different size of screen