fix lookup of loaded modules