fixed problem with canvas not being the correct size