RTC DS1307 issue

Yes you are right. Get a new battery and make sure it is inserted in the holder correctly.