fix for working with JsonResponse