fix some bug when server install.