fixed issue where child resources weren't being added to parent properly