fixes player not respawning at right time