Fixing a variable by reference failure

Signed-off-by: Andrew Lowther <andrew.lowther@mademedia.co.uk>