Change a variable name re #8396

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>