fixed flickering of screen