Correct some errors