Fixed bug in Router class.