fix uninitialized error