Fix screen flicker