File downloading fix