fixed a variable that could be uninitialized