Fix bugs in Lec.6.