Fix duplicate replace on rename object