Revert "Revert "Corrected variable typo in previous commit""

This reverts commit 247668f4fdf05a45b62b2a2843bddd24f0261230.