fix some bug for utils.lua and json.