Fixed genbuf error.