That's weird, you pressed enter/other key to spawn after the player die, right ?
Well, I tested it and it showed 'You must exit spectate mode to spawn, please use /exitspec', you didnt get the message ?
Edit: I've done some more changes, please try again and let me know whether it's still not working..