fixed bug where only the first category filter worked.