fix deprecated variable access also for name