fix some silly mistakes in router module