Merge "Change offline profile to store type_idx of classes."