Fixed a bug with JsonResponse class