fix setCS problem