fixed existing dir issue