Fix canvas error