Fixes zooming and centering