Fix zoom function