fix compiling error

also bug, I had some weird formatting that broke the json parsing