Kate is 100% potty trained if she isn't wearing underwear

As soon as a pair of underwear is on, she pees in them every single time. If she's running around nakkie she won't have a single accident. I don't know how to remedy this problem.. if we could just get her to make the connection that underwear isnt a diaper..