fix uninitialized variable warning