Fix flickering at screen edge.