Fixed private vars codegen