fix update leader
Merge pull request #25 from xiangli-cmu/master

fix update leader