Fixes cursor query on text change, in auto complete field.