Initialized GSegment.Contents properly to prevent null pointer exception