Distributrains: Electric Power tutorial fix

Fixed recently introduced bugs in the Electric Power tutorial.