Fixed invalid pattern variable conversion.