Revert "change permission and fix bug for path"

This reverts commit f89af7f306d553357fa9766bad7d3ba217117b99.