fix to get icoud flag.