fix script execution