Fixed Directory is Null bug when loading directory name from file