fixed null pointer exception for 2 dogs. Michael, please take a look at this when you get the chance