fixed an issue with zooming