Add length if index is too long