fix for https://github.com/bobbylight/AutoComplete/issues/6