Fix bug in parsing JSON
Removed some debugging messages for previous error