clear ci->err after const set; revert 5b51b1; ref #1583