fixed a bug that missed assigning end_ids_total
fixed a bug in inquirer.py