Please rewrite this sentence to remove all grammatical flaws:
I was surprised that my device returned within 48 hour after shipping.
I was surprised that my device returned within 48 hours after shipping it out.