fix routes class detect