m.setTotalDur(0);
for(int k=0; k<cart.getNumStates(); k++){
int newStateDuration = (int)(durationsFraction*m.getDur(k) + newStateDurationFactor);
newStateDuration = Math.max(1, newStateDuration);
m.setDur(k, newStateDuration);
<BUG>m.setTotalDur(m.getTotalDur() + m.getDur(k));
}</BUG>
}
else if( e.getTagName().contentEquals("boundary") ){ // the duration for boundaries predicted in the AcousticModeller is not calculated with HMMs
durVal=0;

m.setTotalDur(0);
for(int k=0; k<cart.getNumStates(); k++){
int newStateDuration = (int)(durationsFraction*m.getDur(k) + newStateDurationFactor);
newStateDuration = Math.max(1, newStateDuration);
m.setDur(k, newStateDuration);
m.incrTotalDur(newStateDuration);
}
}
else if( e.getTagName().contentEquals("boundary") ){ // the duration for boundaries predicted in the AcousticModeller is not calculated with HMMs
durVal=0;
