fix json error, closes #107