routes bug fix