fix nil check for filters