JSON processing bug fixed