Fixed bug at adding WildcardPatterns