fixed incorrect segment detection on a route match