Fixed a null pointer exception on server join