fixed Nonetype error updating data dir