fixed uninitialized memory