Range selection fix