Fix shadowing bug

Not just a Wshadow warning this time, but an honest "this destroyed
the code" bug.