fixed uninitialized variable