Fixed a issue with relative directory in directory view