Fix table filter bug