Arrangements for preventing discharge from edges of electrodes