Fixed directory bug.
Fixed share bug.