ms-sbvar: corrected bug in initialization/computation of final
subperiod