fixed some error in routering