fix undefined routes