Fixed bug with uploading/downloading same file multiple times