Fix bug where duplicate rules created.
Merge pull request #46 from Metaswitch/cifix

Fix bug where duplicate rules created.