fixed canvas error