fixed patch scripts