fix auto-selection