fix routes error