fix some bug with multi json crashes