fix bug where zooming out caused unrecoverable error