Fixed issue with running on battery toggle