fix bug when deploy war