Fixed deleted dir issue