Fixed variable name that shadowed another variable with the same name