Fixed route_type query bug.