Fixed Core::addPeer