Wrong starting category on the starting line

I have had two failed attempts at starting in the correct category. Today I used the companion app to enter an event in Category D (got the green tick along side D). When I start the race I find myseld in the A Category. Can anyone tell me what I a going wrong?

Hi what race was it?
Sometime cats are not w/kg but age or another metric.