Assertion failures casued by uninitialized buffer fixed.