trying to fix json parse error