minor bug in cp.py