Fix a file transfer bug on client side.