minor buffer length fix for the previous change