Fixing rules log issue