fix direct download issue