fixed handle_declare_leader