Fixed issue in lecture 7