fix repeat receive bugs