Thanks for chiming in.
Looks like we have two different issues here:
You're flying with the A/P on and the F/D is pointing into the correct direction (still your F/D logic seems flawed)
I'm flying manually and the F/D points into the *OPPOSITE* direction.