don't modify instance in pattern_init() in case of an error