fixed a bug the prevented from the server to start