fixed screen viewport flickering bug