Fix spurious pattern match failures.