Fix bug on zooming