Fixed issue with the handling of unintialized memory.