I have been in this situation before, the best way to avoid this is to keep your checkbook records accurate. It should not have come out that late so in a way whoever is responsible for it coming out is at fault but you should have been watching your money.
I know from experience trust me. It sucks alot.