fixed infinite while bug in learners choose_action