Fixed the check for AC power & the sign