fix update patch error