fix permission-path bug