fixed bugs in findFirstReplica and findSuccesor