Fixed a bug with the zoom feature.