RegexRepository fix