fix chainer function#6