Fixed warning on creating new rule

(argument for foreach is not an array)