fix wrong sg_index after place