fix file permission mode