Fixed a bug I didn't notice before.

Resulted from an accidentally-reused variable name.