fix patch to archive