fix autocomplete widget null ref bug