Fixed a bug with selections.