fixing file mode bits