Fix json sending problem.