rudimentarily fixed the problem with CTS
Fixed some minor problems