fix bug in tensor container.h