Fixed file transfer bug