Fix a bug at router in server