fixed some cp errors