fix crash 

when the server doesn't exist, the server crash