Fix peer count not updating (regression)