Fixed bug in updating account