Fix selection bug.