fix problem with logging download errors