Fixed directories bug