Fixed the account profile logic.