Fixed uninitialized buffer error.