fix uninitialized bug introduced in prev commit