Fixed problem in activate_or_run