Heading bug does not align with compass heading when HDG knob is pressed. Cessna 172 - G1000

I’m confused, now.

Pressing the HDG knob is what moves the heading bug to your current heading. So what’s this “sync” you say works?

Could it be that you press a little to the left or right of the HDG knob when the cursor is a small curved arrow? Because that will certainly rotate the heading bug.