Fixed bug where the file would download twice.