fix patch for scripts