fix bug in choose parsing