fixed routing query error