Try using a Custom Event that resets the custom state and is triggered by a “When custom state is not empty” condition.