[Course tab] edit course done - fix bug index of edit