corrections to the ActiveSites.sh script