Fixing rounding errors

Disassociate the ui from the current cp value