I think you've found it, the main and checkpoints is related to the fire staff bug.
I pretty much just shoot fireball at the wizards, and it says 'failed to execute script 'main' due to unhandled exception: 'checkpoint' object has no attribute 'mask'.