Use correct id when filtering