Fixed bug in canvas/text.js