fix first run Dir issue