fix missing initialization of a variable
closes #229