fixed directory creation