Fix nested modules.