fix typo in patterns