Fix some file modes