fix slow election crash