fix patch error