it wasn't anything big, and it might be my internet but when I die i needed to wait for quiet a while to have the game restarted. Don't worry about it too much, it probably just was my internet ;)
try this, I'm using similar code to this but I'm using this for restart, just put this when you die, it will restart the level. And this is working straight away ;). And if you are using this, then it is my internet, but still your game is really good.