minor fix for panning