fix jquery autocomplete event behavior