fix for the cases when filter is not present