Could be that the battery isn't making proper contact with the terminals in the battery box. Not all 9V batteries are the same size, so this can happen.
If you gently push on the top of the battery compartment when it's open, does that fix the issue? If so, you can put something at the bottom of the battery (folded piece of paper, cardboard, etc.) to make it fit more snugly in the compartment.