Fixed animation when zooming in or out after changing frame