Bug correction when dir not exists