fix bug where first selection snaps to lines