Fix that it always shows autocomplete window(even when it is not expected)