fix uninitialized field error