profileId undefined when calling appendDefaultItems