fix peer.c