Fix an issue affecting discharge of electrical items.