Fixed adding of profiles.