Fix bug in power_source method.