Fixing error in lecture 18 pointed out to me by Anna.