fix downloading file