Fix download URL retrieval