Fixed a bug in the routeswq