Fix selection bug.
Fix style.