fixed return value of insert index operation.