Rewrite index copy