fix activation code generation problem