Fixed order in learn_period_combobox when adding learn period and a little related bug