Fixed segfault that occurred on server start up