Small fix to accepted query_code range