Bugfix range selection of span

Bugfix: Span is deselect when a left span is selected after a right span was selected.
A selection from right to left is work well.