Fixed bug with uninitialized memory.