fixed permission files issue