Erase genderswap window for refreshing the text

this PR fixes #5323.