fix bug in check of residue when using CLOVER operator