fixed the type of FILTER_SOURCE_PATTERNS