My old key fob was the same. Sometimes wouldn't even work right next to the car. I got this key fob that I linked and it works so much better.
https://www.amazon.com/gp/aw/d/B00KTHU1QM/ref=ppx_yo_mob_b_track_package_o0_img?ie=UTF8&psc=1