fix issue where counter outputs of submodules were not connecting to top level outputs