manual patch error fix