fixed incorrect array assignment function for handshaking in PeerHandler.