fixed autocomplete bug for posting