fixed enable_rule undefined array issue