Final fix for the nightly script.