Fixed a bug which prevented multiple canvases from supporting events