Fixed rel logics.  Fixed RandomAccessFile overwrite file.