fixed bug with broken rule layout when adding new rule