Fix bug with fieldset positions, add the updateFieldsetPosition function and call it after an add or a delete