Zoom algorithm fix