Set selected properly.