fix zoom and pan