fixed small error in router class