fix some bugs in chat & location id in profile setting