Revert "insert segment fix"

This reverts commit 3de15524b144f143911f0ee20967868ccd3f9db6.