fix Buffer.isBuffer bug