fix player restarting