Fix a bug: access to uninitialized memory.