fix routes building