fix an uninitialized var