bug on check the route paths