Activation script bug fix.