Revert pattern matching