Fix selection state