2.4.0
Pass the correct buffer to finish()
2.4.1