Fixing html download