Fix bug, table search is not working when table is empty