Fix update center and zoom function