Gender flag bug fix