Fixed a bug with the previous and next selection.