fixed file chmod flags