Fix for add_peer