Fixed CodeGenerator.dest implementation