Fix bug of keywords input