Fix saving profiles.