Fix a bug in mux.

1. the bug will cause crash in calling mux match method, though the crash
will be recovered.