Fixed an issue in wrong name of variable. This refs #10429
Merge pull request #52 from mantidproject/feature/10429_reduction_issue

Looks good. My kingdom for a compiler.