Sorry to hear this happened, the engine's implementation of level transitions and win states has a bug, and can sometimes 'wrong warp' you to the incorrect level. Not sure what exactly causes this, but I have a fix on the way that should at least intercept when this happens so that it doesn't take you to the outro.