# Bug SSI-451 - Adding child items to a hierarchy sometimes inserts them at the wrong place

Project: Stream Storage Integrations
Status: closed
URL: https://community.openproject.org/work_packages/SSI-451

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Custom fields |
| Target versions | 17.0.0 |
| Observed in versions | 16.6.0 |
| Bug found in version (deprecated) | 16.6.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Jan Sandbrink, Eric Schubert |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Go to an existing hierarchy custom field

2.  Add an item to the hierarchy

3.  Compare where it's planned to be added (according to UI) and where it's created after submitting it

### What is the buggy behavior?

Sometimes the item is created "off-by-one" item (e.g. as second-to-last item, not last item).

### What is the expected behavior?

It's always created where I try to create it.

### Important note

This behaviour is not safely reproducible 😭
