Bugfix: first rule not removed