Fix undefined variable

88399f3 introduced an undefined variable, this fixes that.