fixed open file mode