Fix for modules with no targets.