Fix page blinking