fixed the situation with many deposits in a single transaction