this could fix the JavaScript Canvas error