Latch action booleans are incompatible with local variables and value properties for good reasons.
Use a switch action boolean and reset it to false inside its value change event via a local variable.