Fix up the excluding of modules