fix script issue