That wasn't the bank's or the ATM's fault. When you deposit your money, the machine counts and asks you if the amount deposited is OK. You have to confirm with "yes" to that. It could also be that it only counts 29,000. In that case, you would answer with "no" and then it would count it again and only when you have confirmed with "yes" again will it withdraw it.