fixed bug on table sorter