fixed some problem that the server wouldn't start