fix bug
fix bug about json encoding