fix script issues.