Fix for getBoundsZoom inside condition