Conditional text reverts when drawn from database

Created a document that draws client information from a database: FirstName, LastName, Gender, etc.

Set a conditional text so that if Gender == “M” then it prints “he”, otherwise it prints “she”.

When I select a record and then hit “Data to Fields” on a female customer’s entry, the conditional text briefly changes to “she” and then (something like a tenth of a second later) reverts back to “he”.

Here’s the REALLY weird part: if I reverse the conditions (in other words, if Gender == “F” then it prints “she”, otherwise it prints “he”, it does the exact same thing: briefly goes to “she” when I select a female customer, and then reverts back to “he”.

I’m starting to think my computer is a misogynist!

Anyone got a clue why this might be happening?

(This is on Win 10, LibreOffice 6.4.2.2 64-bit.)