improved bugs from the election example