fix power distribution bug