bug fix: buffer size too small