console/canvas error fixed