Fix improper buffer size.