Fix Factory in json-query