Fix issue with updating rule