fix overflow issue for filters