handle empty selection