fixed skipping print statements of modules with submodules