fix a issue in sendToCloud