fix script error