Fix getModuleInfo for elements in code fragments
~ for rr