fixed directory created crash