fixing a bug with filters and query params