Fix shadowed variable warning