Fixed shadowed variable warning