fix auto selection stuff