Fix dropping input

 1. input key (eg. `foo`)
 2. start query for `foo`
 3. input key again `foob` (add `b`)
 4. end query for `foo` and reset query to `foo` (`b` is dropped)
Merge pull request #19 from cho45/fix-dropping-input

Fix dropping input