fix screen flash