fixing a bug that prevent SentAndGetReply function to work properly