fix the missing data dir problem