Ooh I see. That makes sense. Thanks for explaining XD
By the way, for the died twice part, after trying it again, I think it's because there is a solid ground under the spike. Because of that, the player can jump even though the animation for restarting the level starts playing. And with that jumping, the player become get out from the death trigger zone and re-enter it again. And I think, because of that, the death count decreases twice.
Hope this help XD