fixed issue with autocomplete not working due to invalid json