Fixed a bug with filtering by fields.