fixed total_num after search