Fixed bug that set the length of an evenly sampled sub dimension incorrectly.