Fix bug: when saving 2 or more patches with Save All, first task's patch was used in other tasks