fix random access file