Fix for calling getCanvas