fixed bug with 1st dtw in coursecalc being 0