fix clearing input value of rules