Fix preferred providers & custom pattern