Fix to gender detection, still hacky… still needs a proper home.