Fix stat when no file has been downloaded