fixed multiple routes bug