fix bug where the 'and' filter would be empty