Fix errors in LoadAccountFlags and SetAccountFlag