fix autogroup with selections