index-reorg: correcting reference flags