Fixing a bug in the account model