Sometimes the status of a button would get stuck based on a rule selected just before

Sometimes the status of a button would get stuck based on a rule selected just before. When clicking quickly, the status (for example, whether the button is available or not) was not determined.