fix script for nightly