Small fix to select_actions/3.