fix routes bugs