Correct some errors in the code from the previous and from the last line
added.