How do I make sure this doesn’t happen again?

My parcel was in customs for over 2 weeks then in got shipped back. It’s about 6 kgs.

My parcel was in customs for over 2 weeks then in got shipped back. It’s about 6 kgs.