fix bug for teacher leaving homeworks