fixing result on error mechanism.