Remove unused id from block, to prevent creating duplicated ids in block and anchor.