Nlink and dir entry bug refix