Fixed bug in charme.js.