fix bugs in encoder_set_partitioned_rice_()