Fixes prefix in json for queries.