removed errors related to query and json