Fixed shadowed local variable