Fixed problems with the table filter