fix some bugs
Merge pull request #50 from CannedFish/dentry

fix some bugs