Thanks for letting me know. I believe I've now fixed that bug, it was indeed to do with a rogue bit of code that sometimes resurrected a dead character when another party member levelled up. In fact in the old version I think it was possible for a dead party member to level up, so I've added a fix for that too. I also added a few other tweaks. V1.0.7 is now live.