Fix splits where the nested structure occurs at the end