directory creation fix