Fix error with filtering by email