Fixed a bug with the canAddWithoutConsequence function