#952 returning also the prev_id and next_id in the children property + bugfix