fixed a bug that prevended last time download of files