fixed npe case on server gui