beam: fix bug in File.Receive()