Fix variable typo and activation errors