Fix possible bug in RLE.