Fix a warning about a shadowed variable by renaming the shadowing var