Fixed incorrect add_pattern() call