Fix flickering from refresh.