Fix variable access deprecation.