Fixed div0 issue with CP