fix bug for open a course