Fixed the wrong variable name.

Just found this bug while testing.