Fix getModuleInfo for elements in code fragments
++