Apply the same logic as in 2b00ea6aa to zoom initialization (#520)