Fix bug of creating receiving file.