fix rle bug