Fix typo on variable name, it fixes #3414