Fix a small panning problem