Segment move undo bug fix