Server restart issue fixed on deploying