fix zoom in and out issue