fix routes bug