Fixed initialization issue with unique_companionships array