fixes #5827 structures allowing more than one parent contenlet

Fixed the issue and pushed the code for review, please check it