Fix small bug in deposit,comment on the way