Fix variable name error introduced in commit 83b9643

I noticed this a while ago, but never properly followed up on it