fixing a bug in building composite app structure