IDEX-1530: shifted needed segments after each text segment remove