fix to empty-rle crash