fixed uninitialized variable warning