Fix function expressions used as filters.