Fix uninitialized variable issue