bugfix to be compatible with cs server