Fix compile errors on Electricity