fix peer manager