avoid outputting null modules in filter mode