How to Turn Your Minecraft Pets Visible?

Well, I was playing on minecraft and i did a code where i can turn invisible for 1000000 SECONDS. Something messed up and my dogs turned invisible. Its been like that for about A WEEK and i know 1000000
sec. Doesn't = a week. I NEED to find a way of getting them back besides killing them.

Please Please Please Please Please Help

HALP ME