Incorrect indexes used for child items