fix missing initialization of a variable
closes #304