Fix file permission setting