Unset id if idref is set. Fixed bug with Confidence