Correct some functions