Fix bug in grid filters.