fix empty selection