Fix server segfaulting on start