Fixed an issue with the canvas not centering correctly.