fixed bug when pathString undefined
modified deps