Fixed bug in validating compounding structures