Fixed bug where for-loop variable name was reused.

There are two loops, in the outer one $index is the name of the variable being examined and in the inner on $index was the number of the filter. This caused the wrong value to be passed to the Report constructor.

Suggesting alternate naming for the inner loop.