Fix a serious error in connecting the battery