fixed table search bug