Fixed error if directory dont exist