Global replacement backfired

And then we called a non-existent script