Fixed reference to this.canvas in another location