Fixed unelection bug