Inverse order in which atomic group applies the changes

Fixes an issue, when a conflict could occur by adding new constraints before the old is removed.