Fix variable shadowing warning