Fix for download bug