fix eof json problem