Fix cpinterface