fix bug on filter