Fixes references to storage.base.SegmentNumber.

These seem to have been broken by e90973ae83b56197851caa1c5247fab255b25f40.
Access a variable as a map element, not an attribute.