fixing nightly refresh and fully refresh