fixed bug that caused the script to always run in selective mode

downloading all sessions didn't work because the if statement for selective session mode was wrong