Fixed null pointer in Server