The forces that manage karma are conscious and compassionate. While the law must be fulfilled, superior actions always supersede inferior ones.
For example, if you remove the egos that perpetuate a particular problem and liberate the virtues that were previously trapped in desire, the problem ceases; therefore, the karma for such a mistake is forgiven, stabilized, balanced, or nulled.