fixing the table filter