fix last bug in 2D zoming and panning