fix bug

Keyword in popup window can not selected correctly when the care is
just after a keyword #22