Fixed dir download bug