fixed ast traversing for nested submodules