fixed kwarg in json error method