Fixed canvas height/width bug