Fixed an issue in wrong name of variable. This refs #10429

This was [trac #10429](http://trac.mantidproject.org/mantid/ticket/10429)