Fix the condition portion on the set latest rule.
Merge pull request #49 from mereghost/fix_occurrences_rule

Fix the condition portion on the set latest rule.