Fix pet duplication bug