Fix player spawn crash.