If you had made a mistake in your address in a previous transaction with someone else, you should have changed it to the correct address at that time, and you would not have had this kind of trouble.
I recommend that you check your own address to avoid such problems in the future.