Fixed adding rules to hash map