Deposit model bugfix.