Fix calculateTransitionCommands after delete element from collection