fixed code error in autocomplete output