Fixed --donotactivate switch. Code pulled from phippodoplis patch in com...

Quick fix to correct the --donotactivate switch.