fix json decode problem