Bug in receving file from Linux fixed