Fix router match bug.

1. fix router match bug.
2. check mux match procedure.