Fix downloadHandler error