Fix path pattern issue.