fixed candidate elected bug