Fix variable name bug

Spotted by the ever-vigilant @patrys.