fix issue with rest adapter creating a nested child container