Fix updating rule value