MD_NUM_SLOTS
if (target_slot >= MD_NUM_SLOTS(md)) {
target_slot -= MD_NUM_SLOTS(md);
MD_NUM_SLOTS(md) = slots;