prevent empty election error