fix uninitialized data