Fixed minor typos in complete function.