fix uninitialized memory