fixed error in activate