Fixed crashing player spawn functionality.