Addressed deprecation warning in autocomplete