Fix bugs in table and terms modules, when filter term has space.