Fix bug in download directory