correct delegationState condition
fix auto delegate issue
adjust autoDelegate
Merge remote-tracking branch 'xuhuisheng/master'