Fix bug in ZoomtoFit.