Fix index of teaching plan