fix the bug of loss the last course in the array