fix problem
Make compatible for war.