Fix shadowed variable declaration