Fix currentDictoryPath can't be set to nil