Fix error in autocompletation search