fix variable typo. ticket #3669