Fixed a bug for pipeline dimensionalities >= 10