fix a bug in router