`flagByStatLowPass` is overwriting existing flags
The function flagByStatLowPass
works by checking a certain condition window wise. If a certain conditions is met, the entire window is flagged, which might overwrite exiting flags. This MR fixes this unintended behavior.