fix downloads script