fix admin code generation