fix pickle file mode