Fix deprecated variable access.