Fixed the mis-typed for loops of "1:numDepths-1"

Due to how the loops work, there was actually no numerical difference.