bugfix: learn and select on same sequence