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.
For thirty years I sought God. But when I looked carefully I found that in reality God was the seeker and I the sought. -Bayazid al-Bastami