Fixed bug that could cause a panic when recovering post-election