fix macos 10.9 battery-mode bug