master_id_rank bug