Fixed a bug related to ajax autocompletition