insert segment fix