Bad distance, working from time to time? Many complications with fobs can certainly be fixed simply by changing your battery.
One brand new battery. Batteries ought to be switched every three years or so. Should your battery leaks it is going to damage your remote control.