fix script to run