Trivial fix of a variable name

for an error when used in AMD fashion
Merge pull request #384 from weiribao/2.6

Trivial fix of a variable name