fix typo in match pattern
fail and exn