fix uninitialized variable