fix improper transferring of file results after uploading