bug 1010: fixed variable typo