fixed a bug related to filter categories