fixed errors on cps
fixed errors on cps