Fixed buffer length error.