fix viewport pos after row duplicate