Typing overwrites selection