Try to fix receive bugs

try to fix it by Thread.sleep