Fixed up a nullptr issue in the server