Fixed parentId and predecessorId not being applied correctly