fixed panning issues