Fixed uninitialized use of variable