rectify screen, when press cancel key, reset the screen size