fixed minor bug on route