Deposits bugfix