Fixed potential foreach warning in Cumulative Filter