I assume you are using timescale=0 to pause your game?
You simply need to add an action in your on start of layout event that always sets timescale to 1.0.
In my space shooter (in my sig) it pauses on P-press and also when Upgrade store menu is opened. I had to reset timescale upon exiting both and at start to layout to fix the exact same problem you are describing.