Fix a mistake where pattern matching is against a value