Thank you for playing and good job on beating the game!
Yes, there is currently a bug with beating the game. When you die in any level the game doesn't trigger the end for that level. I'm not sure why it happens, but that's the first thing we try to fix.