fix merge refs in scripts