Fix bug in tryMatch (introduced by previous commit)