Fix uninitialized memory access.