fixed a var declaration typo