server segfault fix