How to avoid false triggering of a target flow switch?