bug fix: invalid Dependencies for UnionOf contracts