Not getting Route badges and XP

For my last 2 rides on Zwift my account looks like it hasn’t recorded the XP points or the route badges. Zwift companion shows I completed the routes and got the badges. In the last ride I levelled up during the ride but when I log into my Zwift account it’s like it never happened and I’m back down a level.
Anyone know why this is happening? Can I fix it?