Fixed generation for non-file filters

Filters that doesn't hold any files will be shown correctly now