you want to imagine an imaginary forcefield of odour around the pumpkin that the dog is aware of but we are not. if you work this in as you're watching it, the dog's movements begin to make more sense.
having such a sensitive sense of smell is probably a burden, and you probably shouldn't belittle the creature for it. it takes time to adjust.