fix bip_select when selecting an earlier option than the current one

updated pull request #323