Fixed sending and getting files from remote server.