Fixed bug in peer registry that enables local peer registry to find wrong peer