Fixed infinite loop on reindex calculation
Fixed problem that occurred when the listParent is null