fix the json bug and chat start to work