correct some errors