fix Canvas.js: fix quickly exit