Script fixing