Is it possible to get wrong gender in anatomy scan? Anyone faced it recently?

I went for my anatomy scan at 22 weeks and was told it's a girl. Then i got a private baby wellbeing scan at 28 weeks and again told it's a girl, but now at 30 weeks my midwife says it's definitely a boy. Anyone faced similar surprise?