fixed backwards compatibility with elections