fix compile error
fix permission