[fix] fixed bug when running selection() on empty range