fixed bug on deposit method