bug fix in canvas.js