Fixed canvas size bug