fixed a few uninitialized variable warning from CoverityScan