fixed mark_dirs setting.