patch error