Fix and issue in receive file