Fixed several bugs in RR compression.