Fix bug with auto zoom