fix script ref