fix break in select
when change the state to leader, we should also update the s.leader to its own name
Merge pull request #56 from xiangli-cmu/master

Fix break in select