correct bug in stf.align_selected()