fixed the crash with SavePetInfo function.