Fix Process to keep step sequence after removing step

Currently removing a step from the process leaves gaps in the step sequence and a process is considered closed at the breakpoint, even though there are more steps thereafter. This commmit ensures that proper index sequence is maintained throughout step removal/additions.